/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package treeship.core.archetype.impl;

import treeship.core.archetype.ArchetypeProperty;
import treeship.core.archetype.PropertyContext;

/**
 *
 * @author Moonchild
 */
public class PropertyContextImpl extends PropertyContext {

    private ArchetypePropertyImpl property;
    private double average = 0.0;
    private double variant = 0.0;
    private double min = 0.0;

    @Override
    public ArchetypeProperty getProperty() {
        return property;
    }

    @Override
    public double getAverage() {
        return average;
    }

    @Override
    public double getVariant() {
        return variant;
    }

    public void setProperty(ArchetypePropertyImpl property) {
        this.property = property;
    }

    public void setAverage(double average) {
        this.average = average;
    }

    public void setVariant(double variant) {
        this.variant = variant;
    }

    public void setMin(double minTreshold) {
        this.min = minTreshold;
    }

    @Override
    public double getMin() {
        return min;
    }

    @Override
    public String toString() {
        return property.getName();
    }
}
